package com.lh.ssm.mapper;

import com.lh.ssm.domain.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressMapper {

    List<Address> selectAddressByUid(int uid);

    int addAddressByUid(@Param("uid") String uid, @Param("name") String name,@Param("phone") String phone,@Param("detailAddress") String detailAddress);

    void updateAddressToDefault(String aid);

    void updateAddressToCommon(@Param("aid") String aid,@Param("uid") int uid);

    int updateAddressById(Address address);

    int deleteAddressById(String aid);
}
